package com.iscas.green.extralindextest.model;

import lombok.Data;

/**
 * API响应包装类
 * @param <T> 响应数据类型
 */
@Data
public class ApiResponse<T> {
    
    private Integer code;
    private String message;
    private T data;
    
    /**
     * 判断响应是否成功
     */
    public boolean isSuccess() {
        return code != null && code == 200;
    }
} 